<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
	<script type="text/javascript" src="${pageContext.request.contextPath }/resources/js/customer/statichtml/list.js"></script>
<div class="page-header">
	<shiro:hasPermission name="serieskind:edit">
	<button id="btnEdit" type="button" onclick="statichtml()" class="btn btn-info btn-sm">
		 <i class="fa fa-pencil-square-o"></i>&nbsp;首页静态化
	</button>
	</shiro:hasPermission>
</div>
<div class="row" style="margin-top:5px;">
	<div class="col-xs-12 widget-container-col ui-sortable"
		style="min-height: 127px;">
		<!-- #section:custom/widget-box.options.transparent -->
		<div class="widget-box transparent ui-sortable-handle"
			style="opacity: 1; z-index: 0;">
			<div class="widget-header">
				<h4 class="widget-title lighter" >首页静态化</h4>
				<div class="widget-toolbar no-border">
					<a href="#" data-action="fullscreen" class="orange2"> 
						<i class="ace-icon fa fa-arrows-alt"></i>
					</a> 
					<a href="#" data-action="collapse" class="green"> 
						<i class="ace-icon fa fa-chevron-up"></i>
					</a>
				</div>
			</div>

		</div>
	</div>
</div>

<script type="text/javascript">
	function statichtml(){
		$.ajax({
			type:"post",
			data:{},
			url:sys.rootPath+"/pagestatic/static.html",
			dataType:"json",
			success:function(data){
				layer.msg(data.message, {
					icon : 0
				});
			},
			error:function(data){
				layer.msg("请求失败", {
					icon : 1
				});
			}
			
		});
	}
</script>
